#ifndef CAMERA_H
#define CAMERA_H

#include <QReadWriteLock>
#include <QImage>

#include "cv.h"

extern QReadWriteLock m_mutexCamera;

typedef struct
{
public:
    unsigned long int m_timeStamp;
    QImage m_pic;
} CameraData;

IplImage* qImage2IplImage(const QImage* qImage);
QImage IplImage2QImage(const IplImage* iplImage);

#endif // CAMERA_H
